package com.ruoyi.goods.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.goods.api.domain.BmPreferential;
import com.ruoyi.goods.api.factory.RemoteGoodsFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author {那蓝桉}
 * @Date: 2023/08/05/ 10:18
 * @description
 */
@FeignClient(contextId = "remoteGoodsService", value = ServiceNameConstants.GOODS_SERVICE, fallbackFactory = RemoteGoodsFallbackFactory.class)
public interface RemoteGoodsService {
    @GetMapping("/goods/getGoodsNumByWarehouseCode/{warehouseCode}")
    Integer getGoodsNumByWarehouseCode(@PathVariable("warehouseCode") String warehouseCode);
    @GetMapping("/seller/queryAll")
    AjaxResult queryAll();
    @GetMapping("/seller/queryByStartTime")
    public AjaxResult queryByStartTime();
    @GetMapping("/seller/updateStatus/{id}")
    public AjaxResult updateStatus(@PathVariable("id") Long id);
    @GetMapping("/seller/updateStatus0/{id}")
    public AjaxResult updateStatus0(@PathVariable("id") Long id);
}
